<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\helpers\Url;

$this->title = '高品';
 ?> 

<?= HTML::cssFile('@web/css/xq.css') ?>
<link rel="stylesheet" href="../css/bootstrap.min.css">
<script type="text/javascript" src="../../web/js/jQuery-1.10.1.min.js" ></script>
<section>
 
<div class="xq">
	<div class="zuo"><a href="<?= Url::to(['images/for-map','at'=>'left','id'=>$id]) ?>"><img src="../images/a17.png"></div></a>
	<div class="you"><a href="<?= Url::to(['images/for-map','at'=>'right','id'=>$id]) ?>"><img src="../images/a17.png"></a></div>
    <div class="datu"><?= Html::img( Yii::$app->request->hostInfo.'\\'.$model->url, ['width'=>500]) ?></div>
    <div class="wenzi">
    <div class="wenzi1">
        <div class="xiangqing"><?= $model->img_name ?></div>

        <div class="lianxi"><a href="#">联系我们查看更多</a></div>
        <div class="shoucang"><?= Html::a('收藏',Url::to(['images/collect','id'=>$id])) ?></div>
        <div class="xiangshi"><?= Html::a('分享') ?></div>
    </div>
    <div class="wenzi2">
        <div class="xinxi"><div class="zuo1">图片编号 </div><div class="you1"><?= $model->id ?></div></div>
        <div class="xinxi"><div class="zuo1">上传者</div> <div class="you1"><?= $model->name0['username'] ?></div></div>
        <div class="xinxi"><div class="zuo1">拍摄地点 </div><div class="you1"><?= $model->address ?></div></div>
        <div class="xinxi"><div class="zuo1">上传时间 </div><div class="you1"><?= date('Y-m-d h:m:s',$model->create_time) ?></div></div>
        <div class="xinxi"><div class="zuo1">类别 </div><div class="you1"><?= $model->type0->type_name ?></div></div>
        <div class="xinxi"><div class="zuo1">肖像权 </div><div class="you1"><?= $model->Porright?'有':'没有' ?></div></div>
        <div id="chakan"><a href="javascript:void(0)">查看更多</a></div>
        	<div id="gengduo" >
                <div class="xinxi">
                    <div class="zuo1">大小 </div>
                    <div class="you1"><?= round($model->info,3) ?>MB</div>
                </div>
        	</div>
    </div>
    </div>
    </div>
    	<script>
	$(function(q){
				$("#chakan").click(function(){
					$("#gengduo").toggle("slow");
				})

				})
</script>
</section>
<section>
	<script>
		$(function(p){
					$(".div1").click(function(){
						$(".div1 a").css({"background":"#000000","color":"#ffffff"});	
						$(".div2 a").css({"background":"#ffffff","color":"#000000"});
					})
					$(".div2").click(function(){
						$(".div2 a").css({"background":"#000000","color":"#ffffff"});	
						$(".div1 a").css({"background":"#ffffff","color":"#000000"});						
					})
			})
	</script>	
		<div class="xuanze">
			<div class="xuanze1">
				<div class="div1"><a href="javascript:void(0)" class="a1">我们的话</a></div>
				<div class="div2"><a href="javascript:void(0)" class="a2" style="border-right: 1px solid black;">他的更多</a></div>
			</div>
			<div class="xuanzetu">
                <div class="grid">
                <?= $this->render('pinglun',['model'=>$model,'uf'=>$uf,'cd'=>$cd])?>
                </div>
	     	</div>
     	
     	<div class="xuanzetu2">
				<div class="grid">
                <?foreach ($imguser as $k=>$v){?>
                    <figure class="<?=$v['shuxing']?>">

                        <img src="<?=$v['url']?>" alt="img02"/>

                        <figcaption>

                            <h2><?=$v['img_name']?></h2>

                            <p>更多详情点击进入</p>

                            <?=Html::a('',
                                \yii\helpers\Url::to(['site/info','id'=>$v['id']]),['style'=>'margin-right:5px'])?>

                        </figcaption>

                    </figure>
				<?}?>

	     	</div>
        </div>
     	

     	
     	</div>
	</section>

<!--     --><?//= $this->render('tab',['typedata'=>$typedata,'imgmodel'=>$imgmodel]) ?>
	



